<%= form_for(:session, url: downloads_path, :html => {:class=>'form-horizontal'}) do |t| %>
	<fieldset>
		<legend>
    <%= link_to '下载文件列表', downloads_path %>
    </legend>
  <div class="control-group">
    <label class="control-label">名称</label>
    <div class="controls">
    <%= t.text_field :title, :placeholder => '下载文件名称' %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">分类</label>
    <div class="controls">
      <%= select_tag "session[category]", options_from_collection_for_select(@dsort, 'id', 'title') %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">版本</label>
    <div class="controls">
    <%= t.text_field :version, :placeholder => '文件版本' %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">大小</label>
    <div class="controls">
    <%= t.text_field :filesize, :placeholder => '文件大小' %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">地址</label>
    <div class="controls">
    <%= t.text_field :downurl, :placeholder => '下载地址' %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">说明</label>
    <div class="controls">
    <%= t.text_field :remark, :placeholder => '相关说明' %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">发布时间</label>
    <div class="controls">
    <%= t.text_field :pubtime, :placeholder => '文件发布时间' %>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <button type="submit" class="btn">新增</button>
    </div>
  </div>
</fieldset>
<% end %>
